/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.p10.miage.gestionabsence.model;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Sofian Seid
 */
public class Question {
    
    private int id;
    private String intitule;

    public Question() {
    }

    public Question(int id, String intitule) {
        this.id = id;
        this.intitule = intitule;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIntitule() {
        return intitule;
    }

    public void setIntitule(String intitule) {
        this.intitule = intitule;
    }
    
    public void init(ResultSet resultat) throws SQLException{
        this.id = resultat.getInt("ID");
        this.intitule = resultat.getString("INTITULE");
    }
}
